package cn.bb.pojo;

import java.io.Serializable;
import java.util.List;

public class Page implements Serializable {
    private int pageSize; //每页的条数
    private int curPageNum; //当前页数

    private int totalPage; //总页数

    private int totalNum;  //总条数

    private List<Object> result; //结果集合

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurPageNum() {
        return curPageNum;
    }

    public void setCurPageNum(int curPageNum) {
        this.curPageNum = curPageNum;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    public List<Object> getResult() {
        return result;
    }

    public void setResult(List<Object> result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "Page{" +
                "pageSize=" + pageSize +
                ", curPageNum=" + curPageNum +
                ", totalPage=" + totalPage +
                ", totalNum=" + totalNum +
                ", result=" + result +
                '}';
    }
}
